function ErrorFactory(fn) {
    if(isFunction(fn)){
        this.errorType = fn;
    }
}
ErrorFactory.prototype.build = function (code, desc, data) {
    return new this.errorType(code, desc, data);
}
